import service from "../utils/request"

// 添加设施的分类
export const addRequest = (data: any) => {
  return service.post("/admin/category", data)
}

// 删除设施的分类
export const delRequest = (id: any) => {
  return service.delete(`/admin/category/${id}`)
}

// 编辑设施的分类
export const editRequest = (data: any) => {
  return service.put("/admin/category", data)
}

// 分页查询设施的分类
export const pageRequest = (query: any) => {
  return service.get("/admin/category/list", {
    params: query,
  })
}
